package com.qmx.qmxapp.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.qmx.qmxapp.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author ChengXiangtong
 * @create 2018/10/29
 * @Describe 会议详情
 */
public class MeetingDetailsAddActivity extends Activity {
    @BindView(R.id.tip_content)
    TextView tip_content;
    @BindView(R.id.head_back)
    ImageView head_back;
    @BindView(R.id.ed_add)
    EditText ed_add;
    @BindView(R.id.btn_btn_save)
    Button btn_btn_save;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_meeting_details_add);
        ButterKnife.bind(this);
        tip_content.setText("会议详情");
    }

    @OnClick({R.id.head_back, R.id.btn_btn_save})
    public void onclick(View v) {
        switch (v.getId()) {
            case R.id.head_back:
                onBackPressed();
                break;
            case R.id.btn_btn_save:
                Intent intent = new Intent(this, AppointmentMeetingActivity.class);
                intent.putExtra("content", ed_add.getText().toString());
                setResult(1, intent);
                finish();
                break;
        }
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
    }
}
